#ifndef RULEEDITORDIALOG_H
#define RULEEDITORDIALOG_H

#include <QDialog>

namespace Ui {
class RuleEditorDialog;
}

class RuleEditorDialog : public QDialog
{
    Q_OBJECT

public:
    explicit RuleEditorDialog(QWidget *parent = nullptr);
    ~RuleEditorDialog();

    void setEditData(const QVariantMap &ruleData); // 修改时加载原始数据
    QVariantMap getRuleData() const;               // 返回编辑结果

private slots:
    void onOkClicked();
    void onCancelClicked();

private:
    Ui::RuleEditorDialog *ui;
};

#endif // RULEEDITORDIALOG_H
